FROM adoptopenjdk:11-jre-openj9

COPY target/waternetwork.jar /app.jar

HEALTHCHECK --interval=30s --timeout=10s --start-period=30s \
  CMD curl -f http://localhost:8080/waternetwork/ || exit 1

EXPOSE 8080